import { Table } from "antd";
import axios from "axios";

const Lottery: React.FC = () => {
  const dataSource = [
    {
      key: "1",
      username: "枢纽",
      age: 30,
      address: "新都斑竹园",
      count: "0",
    },
    {
      key: "2",
      username: "肖申克",
      age: 42,
      address: "西湖区湖底公园1号",
      count: "0",
    },
  ];

  const columns = [
    {
      title: "用户名",
      dataIndex: "username",
      key: "name",
    },
    {
      title: "年龄",
      dataIndex: "age",
      key: "age",
    },
    {
      title: "住址",
      dataIndex: "address",
      key: "address",
    },
    {
      title: "中奖次数",
      dataIndex: "count",
      key: "count",
    },
  ];
  axios
    .get(
      "https://webapi.sporttery.cn/gateway/lottery/getHistoryPageListV1.qry?gameNo=85&provinceId=0&pageSize=30&isVerify=1&pageNo=1"
    )
    .then((data) => {
      console.log(data);
    });
  return (
    <>
      <Table dataSource={dataSource} columns={columns} />
    </>
  );
};

export default Lottery;
